<?php // no direct access
defined('_JEXEC') or die('Restricted access');

$do = JRequest::getVar('do', 'subscribe');
?>
<div id="page">
<form action="index.php?option=com_letterman" method="post" enctype="application/x-www-form-urlencoded" >
<p>
<label for="subscriber_name"><?php echo JText::_('Name') ?> : </label>
<input type="text" id="subscriber_name" name="name" value="<?php echo JRequest::getVar('name') ?>" size="35" /> <br />

<label for="subscriber_email"><?php echo JText::_('Email') ?> : </label>
<input type="text" id="subscriber_email" name="email" value="<?php echo JRequest::getVar('email') ?>" size="35" />
</p>

<p>
<label><input type="radio" name="task" value="subscribe" <?php if ($do!='unsubscribe')  echo 'checked="checked"'?> /> <?php echo JText::_('Subscribe') ?> </label>
<br />
<label><input type="radio" name="task" value="unsubscribe" <?php if ($do=='unsubscribe')  echo 'checked="checked"'?> /> <?php echo JText::_('Unsubscribe') ?> </label>
</p>

<p>
<input type="hidden" name="Itemid" value="<?php echo JRequest::getVar('Itemid') ?>"/>
<input type="submit" value="<?php echo JText::_('Submit') ?>" />
</p>


</form>
</div>